import AnalogyChange from "../tools/AnalogyChange";
import File from "../basics/File";
import Factory from "../Factory";
import Core from "../Core.js"
/**
 * 入口基类
 */


export default class In{
    constructor(file){
        this.file=file;
    }
    outString(tem,square){
        let file=new File();
       // let basicsFile= AnalogyChange.toFile(tem)

             this.outMes("A", "xxxxxx","basicsFile.js")
    }
    outFile(){
        let file=new File();
       // let basicsFile= AnalogyChange.toFile(tem)
        this.outMes("B",file.outData(),"basicsFile")
    }
    run(){
     let core=   Core.instance()
        if(core.outType=="1"){
            this.outFile()
        }else {
            this.outString()
        }
    }



    /**
     * 输出 函数
     */
      outMes(outType,mag,name) {
        //输出 发送
        ipcRenderer.send('outMes',{outTyep:outType,mag:mag,name:name});

         Factory.findOut();
    }


}